"""
Project Name : api_automation_framework
File Name : encoding-utf8-demo.py
Author : lldhsds
Date : 2024/12/28 00:13
Description: /encoding/utf8, 返回一个 UTF-8 编码的 JSON 响应。
"""

import requests

# GET: /encoding/utf8
# Returns a UTF-8 encoded body.
# parameters: None
# response: 200(Encoded UTF-8 content.)
def ending_utf8_demo():
    headers = {'accept': 'text/html'}
    response = requests.get('https://httpbin.org/encoding/utf8', headers=headers)
    print(response.status_code)
    print(response.text)
    print(response.headers)

ending_utf8_demo()